package com.xiaotu.mapper;

import com.xiaotu.model.RoomModel;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 张晓
 * @create 2021-10-14 20:32
 */
@org.apache.ibatis.annotations.Mapper
public interface RoomMapper extends Mapper<RoomModel> {

    @Select("SELECT * FROM `tab_room` WHERE available_status = 1 limit 1 ")
    RoomModel getRoom();

}
